import { createRouter, createWebHashHistory } from "vue-router";
const routes = [
  {
    path: "/",
    redirect: "/homeUser",
  },
  {
    name: "homeUser",
    path: "/homeUser",
    component: () => import("../views/home/homeUser.vue"),
  },
  {
    name: "payCenter",
    path: "/payCenter",
    component: () => import("../views/pay/payCenter.vue"),
  },
  {
    name: "bookList",
    path: "/bookList",
    component: () => import("../views/book/bookList.vue"),
  },
  {
    name: "bookExa",
    path: "/bookExa",
    component: () => import("../views/book/bookExa.vue"),
  },
  {
    name: "bookDetail",
    path: "/bookDetail",
    component: () => import("../views/book/bookDetail.vue"),
  },
  {
    name: "workList",
    path: "/workList",
    component: () => import("../views/work/workList.vue"),
  },
  {
    name: "workExa",
    path: "/workExa",
    component: () => import("../views/work/workExa.vue"),
  },
  {
    name: "needList",
    path: "/needList",
    component: () => import("../views/need/needList.vue"),
  },
  {
    name: "needExa",
    path: "/needExa",
    component: () => import("../views/need/needExa.vue"),
  },
  {
    name: "companyList",
    path: "/companyList",
    component: () => import("../views/company/companyList.vue"),
  },
  {
    name: "companyExa",
    path: "/companyExa",
    component: () => import("../views/company/companyExa.vue"),
  },
  {
    name: "accountList",
    path: "/accountList",
    component: () => import("../views/account/accountList.vue"),
  },
  {
    name: "login",
    path: "/login",
    component: () => import("../views/login/login.vue"),
  },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
